import request from '@/utils/request'

// 查询车况信息列表
export function listSituation(query) {
  return request({
    url: '/scp/situation/list',
    method: 'get',
    params: query
  })
}

// 查询车况信息详细
export function getSituation(situationId) {
  return request({
    url: '/scp/situation/' + situationId,
    method: 'get'
  })
}

// 新增车况信息
export function addSituation(data) {
  return request({
    url: '/scp/situation',
    method: 'post',
    data: data
  })
}

// 修改车况信息
export function updateSituation(data) {
  return request({
    url: '/scp/situation',
    method: 'put',
    data: data
  })
}

// 删除车况信息
export function delSituation(situationId) {
  return request({
    url: '/scp/situation/' + situationId,
    method: 'delete'
  })
}
